﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PBOAMasterPage.master" AutoEventWireup="true" CodeFile="department.aspx.cs" Inherits="department" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/HR.css" />
    <title>部门管理</title>
    <style type="text/css">
        .style1
        {
            height: 27px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <uc:Navigator ID="Navigator1" Text="部门管理" runat="server" />
    <div id="Main">
            <asp:Panel ID="Panel1" runat="server" CssClass="DepLeft" Height="397px" 
                Width="208px">
                <asp:TreeView ID="tv" runat="server" ImageSet="Simple" NodeIndent="10" 
                    onselectednodechanged="tv_SelectedNodeChanged">
                    <HoverNodeStyle Font-Underline="True" ForeColor="#DD5555" />
                    <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="0px"
                        NodeSpacing="0px" VerticalPadding="0px" />
                    <ParentNodeStyle Font-Bold="False" />
                    <SelectedNodeStyle Font-Underline="True" ForeColor="#DD5555" HorizontalPadding="0px"
                        VerticalPadding="0px" />
                </asp:TreeView>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server" >
                <table class="DepRight">
                    <tr>
                        <td>
                            <a>部门名称：</a>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDepId" runat="server" Width="190px" ControlToValidate="txtDepId" CausesValidation="True"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvDepId" runat="server" 
                                ErrorMessage="部门名称不能为空！" Display="Dynamic" Font-Size="12px" ForeColor="Red" ControlToValidate="txtDepId" CausesValidation="True"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a>部门代码：</a>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDepCode" runat="server" Width="190px" ControlToValidate="txtDepCode" CausesValidation="True"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvDepCode" runat="server" 
                                ErrorMessage="部门代码不能为空！" Font-Size="12px" ForeColor="Red" CausesValidation="True" ControlToValidate="txtDepCode"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a>部门描述：</a>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDepDescribe" runat="server" Height="179px" Style="margin-left: 0px"
                                TextMode="MultiLine" Width="290px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td >
                            <a>状态：</a>
                        </td>
                        <td >
                            <asp:RadioButtonList ID="rbtnlStatus" runat="server" 
                                RepeatDirection="Horizontal">
                               <asp:ListItem Text="启用" Value="True" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="禁用" Value="False"></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr class="style1">
                    <td colspan="2">
                        <asp:ValidationSummary ID="vsDepInfo" runat="server" 
                            style="text-align:center;margin-bottom:1px;" Font-Size="12px" />
                    </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        <div id="Button">
                            <asp:Button ID="btnAdd" runat="server" Text="添加" CssClass="ButtonImage" 
                                BorderColor="White" BorderStyle="None" Height="21px" Width="75px" 
                                onclick="btnAdd_Click" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnChange" runat="server" Text="修改" CssClass="ButtonImage"
                                BorderColor="White" BorderStyle="None" Height="21px" Width="75px" 
                                onclick="btnChange_Click"/>
                         </div>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
    </div>
</asp:Content>
